package edu.luc.example;
public class CalcMain {

    public static void main(String[] args) {
        Calculator calculator = new Calculator();
        
        calculator.switchOn();
        System.out.println("...Switch On...");

        calculator.add(500);
        calculator.add(200);
        calculator.subtract(100);
        calculator.divide(2);
        calculator.multiply(10);
        System.out.println("...Clear...");
        calculator.clear();
        calculator.add(500);
        calculator.processFile();
        System.out.println("...ProcessFile... sum = " + calculator.getResult());
        calculator.switchOff();
        System.out.println("...Switch Off...");
    }
}
